package cn.com.css.taxInspection.gt3.service.impl;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.css.taxInspection.gt3.entity.JcLsfxMxEntity;
import cn.com.css.taxInspection.gt3.mapper.JcLsfxMxMapper;
import cn.com.css.taxInspection.gt3.service.JcLsfxMxService;

@Service("jcLsfxMxService")
public class JcLsfxMxServiceImpl extends ServiceImpl<JcLsfxMxMapper, JcLsfxMxEntity> implements JcLsfxMxService {

	@Override
	@DS("oracle")
	public List<JcLsfxMxEntity> getListAll() {
		
		LambdaQueryWrapper<JcLsfxMxEntity> queryWrapper = Wrappers.lambdaQuery();
		queryWrapper.eq(JcLsfxMxEntity::getYxbz, "Y");
		return this.list(queryWrapper);
		
	}


	@Override
	@DS("oracle")
	public List<JcLsfxMxEntity> listByRiskName(String string) {
		LambdaQueryWrapper<JcLsfxMxEntity> queryWrapper = Wrappers.lambdaQuery();
		queryWrapper.eq(JcLsfxMxEntity::getRiskName, "立案30天未做稽查报告");
		queryWrapper.eq(JcLsfxMxEntity::getYxbz, "Y");
		return this.list(queryWrapper);
	}

}